package com.nft.qz.commons.run;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;
import java.util.List;
import java.util.Objects;

@Component
@Slf4j
public class RbacAutoSaveLineRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        String packageName = "com.ct.controller";
        List<String> clazzName = ClazzUtils.getClazzName(packageName, true);
        for (String s : clazzName) {
            Class<?> aClass = Class.forName(s);
            System.out.println("======>" + aClass.getName());

        }
    }
}
